package org.jeecg.modules.accyentry.service;

import java.util.List;
import java.util.Map;

import org.jeecg.modules.accyentry.entity.AccessoryEntry;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @Description:  配件出入库
 * @Author: jerryzhu
 * @Date:   2021-11-15
 * @Version: V1.0
 */
public interface IAccessoryEntryService extends IService<AccessoryEntry> {
	
	/**查询出入库明细分页*/
	IPage<AccessoryEntry> selectAccessoryEntryPage(Page<AccessoryEntry> page, QueryWrapper<AccessoryEntry> queryWrapper);

	/**查询仓库库存数据列表，不分页*/
	List<AccessoryEntry> getAccessoryEntryStorageSummaryList(String storageId);
	
	/**查询员工库存数据列表，不分页*/
	List<AccessoryEntry> getAccessoryEntryPersonSummaryList(String userName);

	/**通过仓库ID获取仓库名字*/
	String getStorageName(String id);

	/**通过配件编号查找配件信息*/
	Map<String, String> queryAccessoryInfoByCodeNum(String codeNum);
}
